﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="categoryadd.aspx.cs" Inherits="UI.system.page.product.categoryadd" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="Common" %>
<div style="margin: 15px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label"><font>上级分类</font><em>*</em></label>
			<div class="layui-input-inline">
                <div id="parentid" class="layui-form-text" parentid="<%=parent.ID %>"><%=parent.Name %></div>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>分类名称</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="name" placeholder="请输入分类名称" lay-verify="required" class="layui-input" value="<%=info.Name %>">
			</div>
		</div>
        <div class='layui-form-item <%=parent.ID==0?"hidden":"" %>'>
			<label class="layui-form-label">分类图标</label>
			<div class="layui-input-inline">
				<div id="upload_product" class='upload_product upload_file_o <%=string.IsNullOrEmpty(info.Img)?"":"hidden" %>'><div id="upload_file_o"></div></div>
                 <div id="upload_show" class='upload_show <%=string.IsNullOrEmpty(info.Img)?"hidden":"" %>'>
                     <div id="img_container" class="img_container" src="<%=info.Img %>"><img src="<%=info.Img %>"/></div>
                     <div class="reupload"><a onclick="Re_Upload(this)">重传</a></div>
                 </div> <div style="float:left; color:red; padding-top:5px; font-size:12px; padding-left:10px;"></div>
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>显示顺序</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="sort" placeholder="请输入显示顺序" lay-verify="required" class="layui-input" value="<%=info.Sort %>">
			</div>
		</div>
		<a lay-filter="save" lay-submit style="display: none;"></a>
	</form>
</div>